package com.tom.architect.day20.simple1;

import java.util.Random;

/**
 * Added by Tom on 2023/12/26.
 * 火车票。
 */
public class Ticket {
    String from;
    String to;

    public Ticket(String from, String to) {
        this.from = from;
        this.to = to;
    }
    int getPrice() {
        return new Random().nextInt(100) + 20;
    }

}
